#include "multiply1.h"

int all_same(char *buf) {
  char *p = buf;
  while (*p == *buf) {
    p++;
  }
  return *p == '\0';
}
int contains(char *buf, int lim, char c) {
  for (int i = 0; i < lim; i++) {
    if (buf[i] == c) {
      return 1;
    }
  }
  return 0;
}